<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html lang="en">
<head>
	<meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
	<title> multiplication table</title>
	<script type="text/javascript">
			document.write("<table border='1'>");
			for (var i =9; i >=1; i--) {
				document.write("<tr>")
				for (var x =1; x <=i; x++) {
					if (x%2==1) {
						document.write("<td style='background:red'>"+x+"*"+i+"="+x*i+"</td>")
					}else if (x%2==0 && i%2==1){
						document.write("<td style='background:blue'>"+x+"*"+i+"="+x*i+"</td>")
					}else{
						document.write("<td style='background:#D4DBED'>"+x+"*"+i+"="+x*i+"</td>")

					}

				};	
				document.write("</tr>")
			};
			document.write("</table>");
	</script>
</head>
<body>
	
</body>
</html>